package com.threeti.mecool.web.form;

import com.threeti.mecool.framework.web.form.AbstractSearchCriteriaForm;
import org.apache.commons.lang.StringUtils;
import org.dozer.Mapping;

public class MemoForm extends AbstractSearchCriteriaForm {

    @Mapping("channel.code")
    private String channelCode;

    @Mapping("content")
    private String memoContent;

    @Mapping("channel.name")
    private String channelName;

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getMemoContent() {
        return memoContent;
    }

    public void setMemoContent(String memoContent) {
        this.memoContent = memoContent;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    @Override
    public boolean hasAnyConditionInputed() {
        return StringUtils.isNotBlank(channelName);
    }

}
